package com.tomoki.iwai.deviceinfo.dto;

import java.io.Serializable;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root
public class BuildInfo implements Serializable
{
	private static final long serialVersionUID = -3846430972882690364L;
	
	@Element(required=false)
	public String FELICA;
	@Element(required=false)
	public String BOARD;
	@Element(required=false)
	public String BRAND;
	@Element(required=false)
	public String CPU_ABI;
	@Element(required=false)
	public String DEVICE;
	@Element(required=false)
	public String DISPLAY;
	@Element(required=false)
	public String FINGERPRINT;
	@Element(required=false)
	public String HOST;
	@Element(required=false)
	public String ID;
	@Element(required=false)
	public String MANUFACTURER;
	@Element(required=false)
	public String MODEL;
	@Element(required=false)
	public String PRODUCT;
	@Element(required=false)
	public String TAGS;
	@Element(required=false)
	public String TIME;
	@Element(required=false)
	public String TYPE;
	@Element(required=false)
	public String USER;
	@Element(required=false)
	public String VERSION_CODENAME;
	@Element(required=false)
	public String VERSION_INCREMENTAL;
	@Element(required=false)
	public String VERSION_RELEASE;
	@Element(required=false)
	public String VERSION_SDK;
	@Element(required=false)
	public String VERSION_SDK_INT;
	@Element(required=false)
	public String USER_AGENT;
	@Element(required=false)
	public String SENSORS;
	
	/**
	 * 文字列表現を取得する。
	 * 
	 * @return 文字列表現
	 */
	@Override
	public String toString()
	{
		StringBuffer stb = new StringBuffer();
		stb.append("FELICA:" + FELICA).append('\n');
		stb.append("BOARD:" + BOARD).append('\n');
		stb.append("BRAND:" + BRAND).append('\n');
		stb.append("CPU_ABI:" + CPU_ABI).append('\n');
		stb.append("DEVICE:" + DEVICE).append('\n');
		stb.append("DISPLAY:" + DISPLAY).append('\n');
		stb.append("FINGERPRINT:" + FINGERPRINT).append('\n');
		stb.append("HOST:" + HOST).append('\n');
		stb.append("ID:" + ID).append('\n');
		stb.append("MANUFACTURER:" + MANUFACTURER).append('\n');
		stb.append("MODEL:" + MODEL).append('\n');
		stb.append("PRODUCT:" + PRODUCT).append('\n');
		stb.append("TAGS:" + TAGS).append('\n');
		stb.append("TIME:" + TIME).append('\n');
		stb.append("TYPE:" + TYPE).append('\n');
		stb.append("USER:" + USER).append('\n');
		stb.append("VERSION.CODENAME:" + VERSION_CODENAME).append('\n');
		stb.append("VERSION.INCREMENTAL:" + VERSION_INCREMENTAL).append('\n');
		stb.append("VERSION.RELEASE:" + VERSION_RELEASE).append('\n');
		stb.append("VERSION.SDK:" + VERSION_SDK).append('\n');
		stb.append("VERSION.SDK_INT:" + VERSION_SDK_INT).append('\n');
		stb.append("USER_AGENT:" + USER_AGENT).append('\n');
		
		return stb.toString();
	}
}
